#include "bsp_mcu.h"

void bsp_mcu_preport_init(void)
{
    /* Initialize all configured peripherals */
    MX_GPIO_Init();
    MX_DMA_Init();
    MX_SPI1_Init();
    MX_TIM7_Init();
    MX_TIM2_Init();
    MX_TIM3_Init();
    MX_TIM4_Init();
}

void bsp_mcu_init(void)
{
  /*Enable timer counter at last*/
  LL_TIM_EnableCounter(TIM2);
  LL_TIM_EnableCounter(TIM3);
  LL_TIM_EnableCounter(TIM4);

  /*Timer7 for tick usage*/
  LL_TIM_EnableIT_UPDATE(TIM7);
  LL_TIM_EnableCounter(TIM7);    
}